func go/types.typeErrorf
21 uses
go/types (current package)
builtins.go#L536: return typeErrorf("no specific type")
builtins.go#L538: return typeErrorf("type must be slice, map, or channel")
builtins.go#L996: return nil, typeErrorf("argument must be a slice; have untyped nil")
builtins.go#L998: return nil, typeErrorf("argument must be a slice; have %s", x)
builtins.go#L1004: return nil, typeErrorf("mismatched slice element types %s and %s in %s", E, s.elem, x)
call.go#L251: return typeErrorf("%s is not a function", t)
expr.go#L200: return typeErrorf("no specific channel type")
expr.go#L204: return typeErrorf("non-channel %s", t)
expr.go#L207: return typeErrorf("send-only channel %s", t)
expr.go#L210: return typeErrorf("receive-only channel %s", t)
predicates.go#L173: return typeErrorf("")
predicates.go#L182: return typeErrorf("struct containing %s cannot be compared", f.typ)
predicates.go#L188: return typeErrorf("%s cannot be compared", T)
predicates.go#L201: return typeErrorf(cause)
predicates.go#L204: return typeErrorf("")
range.go#L213: return typeErrorf("receive from send-only channel %s", t)
under.go#L49: func typeErrorf(format string, args ...any) *typeError {
under.go#L89: return nil, typeErrorf("no specific type")
under.go#L102: return nil, typeErrorf("channels %s and %s have different element types", ct, t)
under.go#L112: return nil, typeErrorf("channels %s and %s have conflicting directions", ct, t)
under.go#L120: return nil, typeErrorf("%s and %s have different underlying types", ct, t)